rem $Id: _build.cmd 23 2014-11-25 21:00:34Z kuroptev@gmail.com $

set cc=classes
set sp=src
set cp=ext\lib\javamail-1.4.3\mail.jar

set javac=call javac
set jar=call jar

del /s /q %cc%\*.class >nul
mkdir %cc%

%javac% -cp %cp% -g -sourcepath %sp% -d %cc% src\com\ucware\wimm\*.java
%javac% -cp %cp% -g -sourcepath %sp% -d %cc% src\com\ucware\wimm\pop3s\*.java
%javac% -cp %cp% -g -sourcepath %sp% -d %cc% src\com\ucware\wimm\imaps\*.java

xcopy /y src\com\ucware\wimm\*.properties %cc%\com\ucware\wimm\*.properties

mkdir build

%jar% cfvm0 build\wimm.jar src\Manifest.mf -C %cc% .
xcopy /y ext\lib\javamail-1.4.3\mail.jar build

pause